/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.practicsubject;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.practicsubject.EduPracticSubject;
import com.idenger.modules.edu.dao.practicsubject.EduPracticSubjectDao;

/**
 * 题目Service
 * @author 兰正军
 * @version 2017-11-30
 */
@Service
@Transactional(readOnly = true)
public class EduPracticSubjectService extends CrudService<EduPracticSubjectDao, EduPracticSubject> {

	public EduPracticSubject get(String id) {
		return super.get(id);
	}
	
	public List<EduPracticSubject> findList(EduPracticSubject eduPracticSubject) {
		return super.findList(eduPracticSubject);
	}

	public List<EduPracticSubject> findPracticeListByPracticeId(EduPracticSubject eduPracticSubject) {
		return	dao.findPracticeListByPracticeId(eduPracticSubject);
	}


	public Page<EduPracticSubject> findPage(Page<EduPracticSubject> page, EduPracticSubject eduPracticSubject) {
		return super.findPage(page, eduPracticSubject);
	}
	
	@Transactional(readOnly = false)
	public void save(EduPracticSubject eduPracticSubject) {
		super.save(eduPracticSubject);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduPracticSubject eduPracticSubject) {
		super.delete(eduPracticSubject);
	}
	
	@Transactional(readOnly = false)
	public void saveList(List<EduPracticSubject> list){
		dao.savelist(list);
	}
	
	public void deleteList(String practicId){
		dao.deleteList(practicId);
	}
}